home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
comm
/
bbs
/
maxsutils.lha
/
MaxUtils
/
MasterQuest01b.lha
/
MasterQuest.doc
< prev
next >
Wrap
Text File
|
1992-10-17
|
3KB
|
86 lines
M a s t er Q u e s t v 0 . 1
This is an idea from an IBM BBS in Sydney (500cc Formula One) and is
probably on many other systems around the place.
It is a questionnaire door (yet another one), but there is something very
different about it. The users make the questions.
The code for this one is very messy but to the best of my knowledge it will
work (well, it does on my set-up).
To set up, make a directory in your doors path called MasterQuest and copy
all the files in this archive into that directory. They are:
AnswerFile.dat
MasterQuest
MScreen.txt
QNum.dat
Questions.dat
Set it up on a menu (function 34) to run the file 'MasterQuest'. Edit
'MScreen.txt' (Menu screen) any way you like so that it fits in with your
BBS or you can leave it the way it is if you prefer.
This is only the first version and it seems to be working okay except as I
said before the code is very messy and confusing (confused myself many
times while writing it). At the moment, you can not edit the data files,
if you do you will ruin the whole program as the data files will be all
different. I am working on an editor now and I should have something done
shortly hopefully.
Well, this door didn't take me too long so I hope I have not overlooked
anything. Any suggestions or comments, please leave me a message in
MaxsNet, MaxsSysOps, Co-SysOp, MiniNet or NetMail me at 3:30000/66. You
can also ring my BBS (Amiga File Server) direct on (02)876-8965.
Enjoy!
A small note just incase you do want to edit it, these are the config file
structures.
AnswerFile.dat - keeps track of the answers
0 <=- Number of people who in Question 1 pressed A
..
.. <=- Depending how many choices, depends where Question 2 begins.
..
1 <=- Number of people who in Question 2 pressed A for example.
If you eish to restart the data file, change all values to 0, however
make sure you do not put not enough 0s in or the door will not like it,
and too may will stuff it up next time someone adds a question.
QNum.dat - keeps track of the current question number.
1 <=- Numerical number of the NEXT question number
If you to delete a question, you would have to take 1 or however many
questions you are deleting off this number. Should be 1 when resetting
door.
Questions.dat - list of questions to be asked.
---START
x - Asked by yyyyyyyyy yyyyyy on zz/zz/zz
<Question>
... <=- Depending how may lines the question is.
---EOQ
<Answers>
... <=- Depending how many possible answers there are.
---EOA
... Etc.
x = Question number, yyyy... = asker's name, zz/zz/zz = date asked.
To reset delete whole file.